var arr = [
  {
    title: 'login',
    path: 'login'
  },
  {
    title: 'itemDetailComment',
    path: ''
  },
  {
    title: 'itemDetailHead'
  },
  {
    title: 'news'
  }

]

arr.sort((a, b) => {
  for (var i = 0; i < a.title.length; i++) {
    if (a.title[i].toLowerCase() > b.title[i].toLowerCase()) return 1
    if (a.title[i].toLowerCase() < b.title[i].toLowerCase()) return -1
  }
  return 0
})

export default arr
